﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Article.aspx.cs" Inherits="NuaTarDoneng.Article" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        </style>
    <script type="text/javascript">
        SyntaxHighlighter.all();
        $(document).ready(function () {
            $("#tds").click(function () {
                $("#td").toggle();
            });
        });
    </script>
   <link rel="canonical" href="http://www.nuatar.com" />
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="mainContents" style="background-color: #FFFFFF; font-family: 仿宋;padding:0px;width:100%; height: auto;">
        <table  style="width:100%;color:Black; height: auto;margin:0px;padding:0px">
            <tr>
                <td style="text-align: center;">
                    <asp:Label ID="blogTitleLabel" runat="server" 
                        style="font-size: 32px; text-align: center; color: #666666;"  /><br />
                </td>
            </tr>
            <tr>
                <td style="text-align: right;font-size:15px;margin:20px 0px 0px 0px; color: #808080;" class="auto-style3">
                    <asp:HiddenField ID="blogID" runat="server" />
                    时间：<asp:Label ID="Timelb" runat="server" Text="Label"></asp:Label>&nbsp;分类：<asp:Label ID="SortNamelb" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td class="auto-style2">
                    <asp:Label ID="blogContentLabel" runat="server" style="font-size: medium" BorderStyle="None" Width="100%"  />
                </td>
            </tr>
           <tr>
                <td class="auto-style2">
                    <g:plusone></g:plusone>
                </td>
            </tr>
        </table>
        <asp:PlaceHolder ID="GoogleAdholder" runat="server">
            <script type="text/javascript"><!--
    google_ad_client = "ca-pub-9656978979439932";
    /* 首页广告 */
    google_ad_slot = "4509525165";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
        </asp:PlaceHolder>
        </div>
    <div style="margin:20px 0px 0px 0px;padding:0px;background:inherit">
        <a href="#" id="tds">发表评论</a>
       <br/> 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="bigname" ErrorMessage="姓名不能为空" style="color: #FF0000" 
                        ValidationGroup="valiGroup1"></asp:RequiredFieldValidator>
                    &nbsp;&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="bigemail" ErrorMessage="邮箱不能为空(不会被显示)" 
                        style="color: #FF0000" ValidationGroup="valiGroup1"></asp:RequiredFieldValidator>
                    &nbsp;&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="bigmessage" ErrorMessage="评论内容不能为空" 
                        style="color: #FF0000" ValidationGroup="valiGroup1"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="bigemail" ErrorMessage="邮箱格式错误" style="color: #FF0000" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="valiGroup1"></asp:RegularExpressionValidator>
        <table class="style221" id="td" style="display:none;width:s">
            
            <tr>
                <td class="style243">
                    *大神怎么称呼：</td>
                <td class="style242">
                    <asp:TextBox ID="bigname" runat="server" MaxLength="30"></asp:TextBox>
                </td>
                <td rowspan="3">
                    评论：<br />
                    <asp:TextBox ID="bigmessage" runat="server" Height="81px" MaxLength="500" 
                        TextMode="MultiLine" Width="290px"></asp:TextBox>
                    <br />
                    （不超过500字）</td>
            </tr>
            <tr>
                <td class="style243">
                    *大神的邮箱：</td>
                <td class="style236">
                    <asp:TextBox ID="bigemail" runat="server" MaxLength="30"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style243">
                    大神的网站或博客：</td>
                <td class="style236">
                    <asp:TextBox ID="bigweb" runat="server" MaxLength="60" ></asp:TextBox>
                </td>
            </tr>
            
            <tr>
                <td class="style240" colspan="3">
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="评论" 
                        ValidationGroup="valiGroup1" />
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT * FROM [blogComment] ORDER BY [CreatDate] DESC">
        </asp:SqlDataSource>
        <asp:DataList ID="DataList1" runat="server" DataKeyField="conmentID" 
            DataSourceID="SqlDataSource2" Width="100%">
            <ItemTemplate>
           
                <table class="style230" style="background-color: gray;color:White;width:100%;margin:5px 0px 5px 0px;padding:0px;border:none">
                    <tr style="font-style: italic;font-size:12px">
                        <td>
                       大神名叫：  <asp:Label ID="Label2" runat="server" Text='<%# Eval("username") %>' />
                       </td>
                    </tr>
                    <tr style="padding:10px 0px 10px 0px">
                        <td >
                     
                      
                          “<asp:Label ID="CommentLabel" runat="server" Text='<%# Eval("Comment") %>' />”
                       
                           <br/>
                         
                           </td>
                    </tr>
                    <tr style="font-style: italic;font-size:12px">
                        <td>
                        <br/>
                         大神的网址：<%# Eval("website") %></td>
                          <td style="text-align:right">
                         留言时间: <asp:Label ID="Label1" runat="server" Text='<%# Eval("CreatDate") %>' />
                       </td>
                    </tr>
                </table>
               
                
            </ItemTemplate>
        </asp:DataList>
        </div>
   
    
</asp:Content>
